package com.yager.service;

import com.yager.model.User;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface UserService {

    //注册一个新用户
    public int registerNewUser(MultipartFile file,String name, String mobile, String email, String pwd);

    //根据userid获取用户的信息
    public User getUserById(String id);

    //修改用户信息
    public void updateUserInfo(User user, MultipartFile file);

    //获取全部用户
    public List<User> getAllUsers();

    //用户登录
    public boolean login(String mobile,String pwd);

    //删除用户
    public void deleteUserById(String id);

    //修改用户的状态使其不可见
    public  void changeUserStatusById(String id);

    public User getUserByMobile(String mobile);

    public User getUserByMobileOrNameOrEmail(String str);

    public void changeUserPwd(String userid,String newpwd);

    public void killUser(String userid);


}
